package com.twetec.cms.model.vo.template;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.twetec.cms.model.vo.base.BaseVO;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

public class UserVO extends BaseVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "id", example = "12345646546")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "工会会员id", example = "12345646546")
    private String unionMemberId;

    @ApiModelProperty(value = "姓名", example = "张三")
    private String name;

    @ApiModelProperty(value = "头像", example = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "证件类型 身份证:ID_CARD 护照:PASSPORT_CARD 资格证:QUALIFICATION_CARD 其他:OTHER_CARD", example = "ID_CARD")
    private String credentialType;

    @ApiModelProperty(value = "证件号码", example = "350524XXXX")
    private String credentialNumber;

    @ApiModelProperty(value = "手机号", example = "13XXXXX")
    private String telephone;

    @ApiModelProperty(value = "状态: ON启用,OFF禁用", example = "ON")
    private String status;

    @ApiModelProperty(value = "出生日期", example = "2020-10-10")
    private Date birthDate;

    @ApiModelProperty(value = "性别: 男MALE  女FEMALE", example = "MALE")
    private String gender;

    @ApiModelProperty(value = "所属单位", example = "")
    private String unit;

    @ApiModelProperty(value = "所属工会", example = "")
    private String unions;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getUnionMemberId() {
        return unionMemberId;
    }

    public void setUnionMemberId(String unionMemberId) {
        this.unionMemberId = unionMemberId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCredentialType() {
        return credentialType;
    }

    public void setCredentialType(String credentialType) {
        this.credentialType = credentialType;
    }

    public String getCredentialNumber() {
        return credentialNumber;
    }

    public void setCredentialNumber(String credentialNumber) {
        this.credentialNumber = credentialNumber;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnions() {
        return unions;
    }

    public void setUnions(String unions) {
        this.unions = unions;
    }

    @Override
    public String toString() {
        return "UserVO{" +
                "id=" + id +
                ", unionMemberId='" + unionMemberId + '\'' +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", credentialType='" + credentialType + '\'' +
                ", credentialNumber='" + credentialNumber + '\'' +
                ", telephone='" + telephone + '\'' +
                ", status='" + status + '\'' +
                ", birthDate=" + birthDate +
                ", gender='" + gender + '\'' +
                ", unit='" + unit + '\'' +
                ", unions='" + unions + '\'' +
                '}';
    }
}
